package com.framework.admin.mapper;

import com.framework.admin.model.SysUser;
import com.framework.admin.vo.SysUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * @author lizurong
 * @description: 综合办公_年休假
 * @createDate 2020年10月21日09:06:03
 * @updateUser:
 * @updateDate:
 * @updateRemark:
 * @version: 1.0
 */
@Mapper
public interface UserMapper {
    Page<SysUserVO> findUsers(@Param("user") SysUser user, @Param("deptIds")  List<String> deptIds, Pageable pageable);

    List<String> childDeptIds(@Param("id") String id);

    List<SysUser> findWorkflowUsers( @Param("user") SysUser user, @Param("oauthCode") String oauthCode);

    SysUser findThirdPartUser(Map<String, String> param);

    void saveInfo(SysUser user);
}
